<template>
    <div class="answering-doubts">
        <div class="content">
            <h3 class="title f16">{{ listData.article_title }}</h3>
            <span class="detail f14" v-html="listData.content"></span>
        </div>
        <div class="contact-service">
            <span class="f14">如果以上内容无法解决您的问题可以咨询客服</span>
            <div class="btn">客服咨询</div>
        </div>
    </div>
</template>
<script>
export default {
    name: "AnsweringDoubts",
    data() {
        return {
            listData: {},
        }
    },
    created() {
        this.getData();
    },
    methods: {
        getData() {
            const { id } = this.$route.query;
            this.$sendGet("Help/getCommonProblemById", { id })
                .then(res => {
                    const { data } = res.data;
                    this.listData = data;
                })
        }
    }
}
</script>
<style lang="scss" scoped>
.answering-doubts {
    height: 100vh;
    width: 100vw;
    background-color: #ffffff;
    position: relative;
    padding: 30px 15px 0;
    box-sizing: border-box;

    .content {
        .title {
            margin-bottom: 30px;
        }

        .detail {
            color: #5b5b5b;
        }
    }

    .contact-service {
        display: flex;
        align-items: center;
        flex-direction: column;
        position: absolute;
        bottom: 30px;
        width: 345px;

        span {
            margin-bottom: 15px;
            color: #9c9c9c;
        }

        .btn {
            background-color: white;
            color: #e67273;
            padding: 8px 28px;
            border-radius: 20px;
            border: 1px solid #e67273;
        }
    }
}
</style>